package com.tdking.common.pojo.po;


import lombok.Data;
import nonapi.io.github.classgraph.json.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;


@Data
@Document(indexName = "content_note")
public class NoteSearchPO {

    /**
     * 笔记id
     */
    @Id
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 封面图片
     */
    private String picUrl;

    /**
     * 笔记内容
     */
    @Field(type = FieldType.Text, analyzer = "ik_smart")
    private String content;

    /**
     * 笔记标题
     */
    @Field(type = FieldType.Text, analyzer = "ik_smart")
    private String title;

    /**
     * 头像
     */
    private String avatar;

    /**
     * 昵称
     */
    private String nickname;

    /**
     * 点赞次数
     */
    private Integer likeTimes;





}
